LU

[Encerrado] [Pokemon] Dúvidas? - Pda

Por lucashgas, 10 de jan. de 2012 em Tópicos Sem Resposta

brun123
pokemon
otserv
tibia
12.4k
1.9M
29 de agosto de 2012 às 19:20

@Slicer

 

 

local config = {

loginMessage = getConfigValue('loginMessage'),

useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))

}

 

local flys = {

["Moltres"] = {229, 2300}, -- moltres

["Articuno"] = {230, 2100}, -- artic

["Zapdos"] = {224, 2600}, -- zapdos

["Mew"] = {232, 2200}, -- 1000

["Mewtwo"] = {233, 2200},-- two

["Dragonite"] = {221, 1300},-- nite

["Pidgeot"] = {222, 900}, -- geot

["Fearow"] = {226, 800}, -- fearow

["Aerodactyl"] = {227, 1100}, -- aero

["Charizard"] = {216, 1000}, -- chari

["Porygon"] = {316, 600}, -- porygon

["Shiny Dragonite"] = {1020, 1300},-- Shiny nite

["Shiny Pidgeot"] = {996, 900}, -- Shiny geot --alterado v2.5

["Shiny Fearow"] = {997, 800}, -- Shiny fearow

["Shiny Charizard"] = {995, 1000}, -- Shiny chari

["Porygon2"] = {648, 890}, -- 2

["Skarmory"] = {649, 1000}, -- skarmory

["Crobat"] = {652, 1190}, -- crobat

 

["Noctowl"] = {994, 1000},

["Dragonair"] = {1112, 1150}, --alterado v2.5

["Shiny Dragonair"] = {1113, 1400},

}

 

local rides = {

["Tauros"] = {128, 580}, -- tauros

["Ninetales"] = {129, 800}, -- kyuubi

["Rapidash"] = {130, 800}, -- rapid

["Ponyta"] = {131, 410}, -- ponyta

["Rhyhorn"] = {132, 400}, -- rhyhorn

["Arcanine"] = {12, 900}, -- arcan

["Onix"] = {126, 450}, -- onix

["Venusaur"] = {134, 390}, -- venu

["Dodrio"] = {133, 750}, -- dodrio

["Doduo"] = {135, 420}, -- doduo

["Shiny Arcanine"] = {1003, 900}, -- arcan --alterado v2.5

["Shiny Onix"] = {126, 480}, -- onix

["Shiny Venusaur"] = {1040, 390}, -- venu

["Steelix"] = {646, 750}, -- steelix

["Meganium"] = {685, 720}, -- meganium

["Bayleef"] = {686, 555}, -- bayleef

["Stantler"] = {687, 595}, -- stantler

["Houndoom"] = {647, 820}, -- houndoom

["Piloswine"] = {689, 450}, -- piloswine

["Mareep"] = {688, 400}, -- marip

}

 

local surf = {

["Poliwag"] = {lookType=278, speed = 320},

["Poliwhirl"] = {lookType=137, speed = 480},

["Seaking"] = {lookType=269, speed = 520},

["Dewgong"] = {lookType=183, speed = 700},

["Blastoise"] = {lookType=184, speed = 850},

["Tentacruel"] = {lookType=185, speed = 750},

["Lapras"] = {lookType=186, speed = 960},

["Gyarados"] = {lookType=187, speed = 1050},

["Omastar"] = {lookType=188, speed = 680},

["Kabutops"] = {lookType=189, speed = 840},

["Poliwrath"] = {lookType=190, speed = 680},

["Vaporeon"] = {lookType=191, speed = 800},

["Staryu"] = {lookType=266, speed = 385},

["Starmie"] = {lookType=267, speed = 685},

["Goldeen"] = {lookType=268, speed = 355},

["Seadra"] = {lookType=270, speed = 655},

["Golduck"] = {lookType=271, speed = 760},

["Squirtle"] = {lookType=273, speed = 365},

["Wartortle"] = {lookType=275, speed = 605},

["Tentacool"] = {lookType=277, speed = 340},

["Snorlax"] = {lookType=300, speed = 500},

 

["Shiny Blastoise"] = {lookType=1002, speed = 850},

["Shiny Tentacruel"] = {lookType=1014, speed = 750},

["Shiny Gyarados"] = {lookType=1030, speed = 1050},

["Shiny Vaporeon"] = {lookType=1032, speed = 800}, --alterado v2.5

["Shiny Seadra"] = {lookType=1025, speed = 655},

["Shiny Tentacool"] = {lookType=1013, speed = 340},

["Shiny Snorlax"] = {lookType=1035, speed = 500},

 

["Mantine"] = {lookType=636, speed = 820},

["Totodile"] = {lookType=637, speed = 360},

["Croconow"] = {lookType=638, speed = 590},

["Feraligatr"] = {lookType=645, speed = 900},

["Marill"] = {lookType=639, speed = 340},

["Azumarill"] = {lookType=642, speed = 680},

["Quagsire"] = {lookType=643, speed = 740},

["Kingdra"] = {lookType=644, speed = 1020},

["Octillery"] = {lookType=641, speed = 600},

["Wooper"] = {lookType=640, speed = 315},

}

 

function onLogin(cid)

 

doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 100)

doCreatureSetDropLoot(cid, false)

 

local accountManager = getPlayerAccountManager(cid)

 

if(accountManager == MANAGER_NONE) then

local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage

if(lastLogin > 0) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."

else

str = str

end

 

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

 

elseif(accountManager == MANAGER_NAMELOCK) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")

elseif(accountManager == MANAGER_ACCOUNT) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")

end

 

if getCreatureName(cid) == "Account Manager" then

local outfit = {}

if accountManagerRandomPokemonOutfit then

outfit = {lookType = getPokemonXMLOutfit(oldpokedex[math.random(151)][1])}

else

outfit = accountManagerOutfit

end

 

doSetCreatureOutfit(cid, outfit, -1)

return true

end

 

if(not isPlayerGhost(cid)) then

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

end

 

local outfit = {}

 

if getPlayerVocation(cid) == 0 then

doPlayerSetMaxCapacity(cid, 0)

doPlayerSetVocation(cid, 1)

setCreatureMaxMana(cid, 6)

doPlayerAddSoul(cid, -getPlayerSoul(cid))

setPlayerStorageValue(cid, 19898, 0)

if getCreatureOutfit(cid).lookType == 128 then

outfit = {lookType = 510, lookHead = math.random(0, 132), lookBody = math.random(0, 132), lookLegs = math.random(0, 132), lookFeet = math.random(0, 132)}

elseif getCreatureOutfit(cid).lookType == 136 then

outfit = {lookType = 511, lookHead = math.random(0, 132), lookBody = math.random(0, 132), lookLegs = math.random(0, 132), lookFeet = math.random(0, 132)}

end

doCreatureChangeOutfit(cid, outfit)

end

 

registerCreatureEvent(cid, "WatchTv")

registerCreatureEvent(cid, "StopWatchingTv")

registerCreatureEvent(cid, "WalkTv")

registerCreatureEvent(cid, "RecordTv")

--registerCreatureEvent(cid, "Death")

registerCreatureEvent(cid, "PlayerLogout")

registerCreatureEvent(cid, "WildAttack")

registerCreatureEvent(cid, "Idle")

registerCreatureEvent(cid, "PokemonIdle")

registerCreatureEvent(cid, "EffectOnAdvance")

registerCreatureEvent(cid, "GeneralConfiguration")

registerCreatureEvent(cid, "ReportBug")

registerCreatureEvent(cid, "LookSystem")

registerCreatureEvent(cid, "T1")

registerCreatureEvent(cid, "T2")

registerCreatureEvent(cid, "task_count")

 

if getPlayerStorageValue(cid, 99284) == 1 then

setPlayerStorageValue(cid, 99284, -1)

end

 

if getPlayerStorageValue(cid, 6598754) >= 1 or getPlayerStorageValue(cid, 6598755) >= 1 then

setPlayerStorageValue(cid, 6598754, -1)

setPlayerStorageValue(cid, 6598755, -1)

end

 

doChangeSpeed(cid, -(getCreatureSpeed(cid)))

 

if getPlayerStorageValue(cid, 17000) >= 1 then -- fly

 

local item = getPlayerSlotItem(cid, 8)

local poke = getItemAttribute(item.uid, "poke")

doChangeSpeed(cid, getPlayerStorageValue(cid, 54844))

doRemoveCondition(cid, CONDITION_OUTFIT)

doSetCreatureOutfit(cid, {lookType = flys[poke][1] + 351}, -1)

 

local apos = getFlyingMarkedPos(cid)

apos.stackpos = 0

 

if getTileThingByPos(apos).itemid <= 2 then

doCombatAreaHealth(cid, FIREDAMAGE, getFlyingMarkedPos(cid), 0, 0, 0, CONST_ME_NONE)

doCreateItem(460, 1, getFlyingMarkedPos(cid))

end

 

doTeleportThing(cid, apos, false)

 

local posicao = getTownTemplePosition(getPlayerTown(cid))

markFlyingPos(cid, posicao)

 

elseif getPlayerStorageValue(cid, 63215) >= 1 then -- surf

 

local item = getPlayerSlotItem(cid, 8)

local poke = getItemAttribute(item.uid, "poke")

doSetCreatureOutfit(cid, {lookType = surf[poke].lookType + 351}, -1)

doChangeSpeed(cid, getPlayerStorageValue(cid, 54844))

 

elseif getPlayerStorageValue(cid, 17001) >= 1 then -- ride

 

local item = getPlayerSlotItem(cid, 8)

local poke = getItemAttribute(item.uid, "poke")

 

 

if rides[poke] then

doChangeSpeed(cid, getPlayerStorageValue(cid, 54844))

doRemoveCondition(cid, CONDITION_OUTFIT)

doSetCreatureOutfit(cid, {lookType = rides[poke][1] + 351}, -1)

else

setPlayerStorageValue(cid, 17001, -1)

doChangeSpeed(cid, PlayerSpeed)

end

 

local posicao2 = getTownTemplePosition(getPlayerTown(cid))

markFlyingPos(cid, posicao2)

 

elseif getPlayerStorageValue(cid, 13008) >= 1 then -- dive

if not isInArray({5405, 5406, 5407, 5408, 5409, 5410}, getTileInfo(getThingPos(cid)).itemid) then

setPlayerStorageValue(cid, 13008, 0)

doChangeSpeed(cid, PlayerSpeed)

doRemoveCondition(cid, CONDITION_OUTFIT)

return true

end

 

if getPlayerSex(cid) == 1 then

doSetCreatureOutfit(cid, {lookType = 1034, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1)

else

doSetCreatureOutfit(cid, {lookType = 1035, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1)

end

doChangeSpeed(cid, 800)

 

elseif getPlayerStorageValue(cid, 5700) > 0 then --bike

doChangeSpeed(cid, getPlayerStorageValue(cid, 5700))

if getPlayerSex(cid) == 1 then

doSetCreatureOutfit(cid, {lookType = 1394}, -1)

else

doSetCreatureOutfit(cid, {lookType = 1393}, -1)

end

elseif getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 7 then

doChangeSpeed(cid, 140*getPlayerGroupId(cid))

else

doChangeSpeed(cid, PlayerSpeed)

end

 

if getPlayerStorageValue(cid, 22545) >= 1 then --golden arena

setPlayerStorageValue(cid, 22545, -1) --alterado v2.4

doTeleportThing(cid, getClosestFreeTile(cid, posBackGolden), false)

end

 

if useKpdoDlls then

doUpdateMoves(cid) --alterado v2.4 soh pra quem quiser... ;p

doUpdatePokemonsBar(cid)

end

 

return true

end

 

Editado Agosto 29 por PokemonFezin

SlicerS
29 de agosto de 2012 às 19:29

@PokemonFezin

vc usa o sistema de bike? pq aparentemente tu ta usando a storage da bike pra outra coisa.. ;x vai no teu editor de acc... dai vai em Tables, player_storage e tenta achar a storage 5700... e ve oq tem nela.. se for uma palavra, mude para -1...

ou tire essa parte do teu script..

 

elseif getPlayerStorageValue(cid, 5700) > 0 then --bike

doChangeSpeed(cid, getPlayerStorageValue(cid, 5700))

if getPlayerSex(cid) == 1 then

doSetCreatureOutfit(cid, {lookType = 1394}, -1)

else

doSetCreatureOutfit(cid, {lookType = 1393}, -1)

end

 

 

@PedroSouza

novos sistemas e correçao de bugs viram na proxima atualizaçao.. aguarde ate la.. e eu estava me referindo a quando o poke morre durante o control mind aparecer o corpse dele...

29 de agosto de 2012 às 19:33

Eu uso o sistema de bike sim slicer, irei testar aqui pra ver se funciona se funcionar rep+ ;d

 

@edit

 

a Storage 5700 ta 1 eu mudei para -1 e tirei o a parte que você falou do login..!

Editado Agosto 29 por PokemonFezin

zesyZ
29 de agosto de 2012 às 19:46

ZeSy

 

vc conssegui bota pra o player ataca o pokemon de outro cara no pvp?

 

Consegui nada, buga o bagulho...

 

E tipo... as outfits tá tudo certo no .dat e tals... tá foda :S

 

Desculpa a demora, escola nao me deixa entra :S

29 de agosto de 2012 às 20:02

Slicer ainda continua o erro e ja fiz oque você falou olha

 

 

 

 

[29/08/2012 19:54:04] [PKF] Rock has logged in.

 

[29/08/2012 19:54:04] [Error - CreatureScript Interface]

[29/08/2012 19:54:04] data/creaturescripts/scripts/login.lua:onLogin

[29/08/2012 19:54:04] Description:

[29/08/2012 19:54:04] (luaGetItemAttribute) Item not found

[29/08/2012 19:54:04] [Error - CreatureScript Interface]

[29/08/2012 19:54:04] data/creaturescripts/scripts/login.lua:onLogin

[29/08/2012 19:54:04] Description:

[29/08/2012 19:54:04] data/creaturescripts/scripts/login.lua:189: attempt to index field '?' (a nil value)

[29/08/2012 19:54:04] stack traceback:

[29/08/2012 19:54:04] data/creaturescripts/scripts/login.lua:189: in function <data/creaturescripts/scripts/login.lua:97>

[29/08/2012 19:54:04] [PKF] Rock has logged out.

Erro no executavel.

SlicerS
29 de agosto de 2012 às 20:11

@PokemonFezin

mano tem algu bem estranhu ae no teu serv.. ;x

aparentemente... tu tento logar com um char, com a storage de FLY mas sem nenhuma ball no slot de pokes... ;/ -eh como se ele tivese em fly mas n tem nenhuma ball no slot...- tenta ir la no editor de acc, achar o id do cara ae q tento logar e mudar a storage do fly, 17000, para -1...

MaguitoM
29 de agosto de 2012 às 20:13

@Slicer

O effect do comet punch e do hammer arm acho que tem no cliente. Creio que daria pra fazer essas spells, ja que não parece ser dificeis de fazer.

SlicerS
29 de agosto de 2012 às 20:20

@maguito

o hammer arm n eh a q deixa silence -ou imobilizado n lembro-, se for.. ela usa as 4 sprites de braços pros lados, n? e ainda deixa silence/imobilizado com um outro effect la tb... ;x e o outro nunca vi...

MaguitoM
29 de agosto de 2012 às 20:29

Se eu não to enganado, o comet punch é o effect 237, é um ataque simples, acho que ele aparece 4 x sobre o target, mas não sei se hita 4 x. O hammer arm creio que não seja 4 effects não.

SlicerS
29 de agosto de 2012 às 20:31

@maguito

se eh aquele atk do ursaring usa sim 4 effects pro atk e +1 effect pro 'status'... ;/

29 de agosto de 2012 às 20:33

Alguem sabe mudar as ordens da bag, dex, order, catch e rope na barra do tibia?

MatedM
29 de agosto de 2012 às 20:35

 

 

@Slicer

man tem um bug tenso aqui tipo...

tem a house lá e tals ai no segundo andar da house os cara que não é dono da house, consegue vir de fly Apertando ESC + ANDANDO PELO TECLADO + CLICK NO MOUSE ai tipo eles é jogado pra dentro do trequinho da house.

 

25i1ax3.png

 

sabe como concerta mano ? :x vlw.

 

 

 

tbm estou com esse bug... mais tenho uma soluçao se botassemos a tecla esc pra da up ou down (tento faiz) seria uma soluçao pq ai quando o player apertasse ESC pra andar ia dar up ou down Xd... pior q n sei fazer isso quem min fala como fais dou rep+

 

 

a tbm tenho outro bug o meu pvp tipo n da pra ataca o poke de outro cara, quer dizer ate da mas.. não tira hit do poke de outra pessoa alguem pode min ajuda?

Editado Agosto 29 por Mated

zerefshirouZ
29 de agosto de 2012 às 20:36

@Slicer and @Maguito

Hammer Arm é 4 efeitos, ai acho melhor pegar aquele efeito que é 1 soco no meio da tela

 

E o Comet Punch deixa do jeito q veio no serve "versão do brun123" e sei la como são 4 hits na pxg, pq não faz um hit e dano maior?

 

Edit:

 

@pedrowarlock

Só mudar a ordem ganha nos firstitems.lua (mods) [acho q é esse o nome do arquivo] e caso não seja suficiente mudar no items.xml e até talvez no dat editor, a posição onde ele fica, no caso capacete bota, etc... simples

Editado Agosto 29 por ZerefShirou

29 de agosto de 2012 às 21:03

@slicer , procurei o id dele no player e achei ja no player_storage não, falei para ele criar outro conta e deu tudo certo mais, mesmo assim vlw por tentar ajudar ;d

SlicerS
29 de agosto de 2012 às 21:18

@pedrowarlock

se tu muda a bag de lugar te prepare pra MUITOS mas MUITOS problemas.. ja aviso.. ;x

edit:corrigido kk

 

@off

soh eu achu estranhu q eu tive q usar o onAddItem pra fazer o script de poke unique? ;x com o onRemoveItem eu jogava a ball no chao e n dava nd.. dai puxava pro slot do poke devolta e o script funcionava o.O achu q as functions tao trocadas na source.. soh pode...

Editado Agosto 29 por Slicer